﻿using System;
using System.Runtime.Serialization;

namespace Bmz
{
    /// <summary>
    /// Base exception type for those are thrown by Bmz system for Bmz specific exceptions.
    /// </summary>
    [Serializable]
    public class BmzException:Exception
    {
        /// <summary>
        /// Creates a new <see cref="BmzException"/> object.
        /// </summary>
        public BmzException()
        {

        }

        /// <summary>
        /// Creates a new <see cref="BmzException"/> object.
        /// </summary>
        public BmzException(SerializationInfo serializationInfo,StreamingContext context)
            :base(serializationInfo,context)
        {

        }

        /// <summary>
        /// Creates a new <see cref="BmzException"/> object.
        /// </summary>
        /// <param name="message">Exception message</param>
        public BmzException(string message):base(message)
        {

        }

        /// <summary>
        /// Creates a new <see cref="BmzException"/> object.
        /// </summary>
        /// <param name="message">Exception message</param>
        /// <param name="innerException">Inner exception</param>
        public BmzException(string message,Exception innerException):base(message,innerException)
        {

        }
    }
}
